
class IconInfo {
    String iconName;
    int id;
    String warningName;

    IconInfo({this.iconName, this.id, this.warningName});

    factory IconInfo.fromJson(Map<String, dynamic> json) {
        return IconInfo(
            iconName: json['iconName'], 
            id: json['id'], 
            warningName: json['warningName'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['iconName'] = this.iconName;
        data['id'] = this.id;
        data['warningName'] = this.warningName;
        return data;
    }
}